class PendingSelectedGroupSection {
  List<PendingSelectedGroupEntity>? data;

  PendingSelectedGroupSection({
    this.data,
  });

  factory PendingSelectedGroupSection.fromJson(Map<String, dynamic> json) {
    final originList = json['data'] as List?;
    List<PendingSelectedGroupEntity> protocolList = (originList??[])
        .map((value) => PendingSelectedGroupEntity.fromJson(value))
        .toList();
    return PendingSelectedGroupSection(
      data: protocolList,
    );
  }
}

class PendingSelectedGroupEntity {
  String? serviceTypeName;
  String? name;
  String? postCode;
  bool? isSelected;
  int? id;
  int? count;
  List<PendingSelectedGroupInfo>? user;

  PendingSelectedGroupEntity({
    this.user,
    this.serviceTypeName,
    this.name,
    this.id,
    this.postCode,
    this.count,
    this.isSelected = false,
  });

  factory PendingSelectedGroupEntity.fromJson(Map<String, dynamic> json) {
    final originList = json['user'] as List?;
    List<PendingSelectedGroupInfo> protocolList = (originList??[])
        .map((value) => PendingSelectedGroupInfo.fromJson(value))
        .toList();

    return PendingSelectedGroupEntity(
      user: protocolList,
      serviceTypeName: json['serviceTypeName'],
      name: json['name'],
      id: json['id'],
      postCode: json['postCode'],
    );
  }
}

class PendingSelectedGroupInfo {
  String? userName;
  int? userId;
  int? humanId;
  int? status;
  int? id;
  int? serviceGroupId;
  bool? isSelected;

  PendingSelectedGroupInfo({
    this.userName,
    this.userId,
    this.id,
    this.status,
    this.humanId,
    this.serviceGroupId,
    this.isSelected = false,
  });

  PendingSelectedGroupInfo.fromJson(Map data) {
    userName = data['userName'];
    userId = data['userId'];
    id = data['id'];
    status = data['status'];
    humanId = data['humanId'];
    serviceGroupId = data['serviceGroupId'];
    isSelected = false;
  }
}
